﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SFightOper extends IMessageBase
    {
        public var toEntitys:Array;
        public var skillId:int;
        public var mousePoint:SPoint;
        public var op:int;
        public var count:int;
        public var jsStr:String;
        public const _type:int = 15950;
        public static var _regist:SFightOper = new SFightOper(true);

        public function SFightOper(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SFightOper();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            SeqEntityIdHelper.write(param1, this.toEntitys);
            param1.writeInt(this.skillId);
            this.mousePoint.__write(param1);
            param1.writeByte(this.op);
            param1.writeShort(this.count);
            param1.writeString(this.jsStr);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.toEntitys = SeqEntityIdHelper.read(param1);
            this.skillId = param1.readInt();
            this.mousePoint = new SPoint();
            this.mousePoint.__read(param1);
            this.op = param1.readByte();
            this.count = param1.readShort();
            this.jsStr = param1.readString();
            return;
        }// end function

    }
}
